package com.nuoniu.sibanyun.entity.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import com.nuoniu.sibanyun.service.finance.IVAssetsLiabilitiesDetailService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 资产负债表
 * </p>
 *
 * @author 小啊刚
 * @since 2021-05-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("far_balance_sheet")
@ApiModel(value="VAssetsLiabilitiesMain对象", description="资产负债表")
public class VAssetsLiabilitiesMain extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "公司名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "账套年份")
    @TableField("account_year")
    private Integer accountYear;

    @ApiModelProperty(value = "行数")
    @TableField("line")
    private Integer line;

    @ApiModelProperty(value = "列数")
    @TableField("columns")
    private String columns;

    @ApiModelProperty(value = "级次")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "类型1:资产 2:利润")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "类型:1文本 2公式 3:计算")
    @TableField("value_type")
    private Integer valueType;

    @ApiModelProperty(value = "值")
    @TableField("value")
    private String value;

    @ApiModelProperty(value = "公式")
    @TableField("formula")
    private String formula;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "公式")
    @TableField(exist = false)
    private List<VAssetsLiabilitiesFormula> assetsLiabilitiesFormulas;
}
